package com.hengpeng.msls.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Service;

import com.hengpeng.common.exception.ServiceResult;
import com.hengpeng.itfinbase.persist.SystemConfig;
import com.hengpeng.msls.service.ServiceFactory;
import com.hengpeng.msls.service.SystemConfigService;

/**
 * <pre>
 * 系统参数服务接口实现
 * </pre>
 * @author shanguogang
 * @version 1.0, 2015-8-17
 */
@Service
@Lazy
public class SystemConfigServiceImpl implements SystemConfigService
{

	@Autowired
	private ServiceFactory serviceFactory;

	@Override
	public ServiceResult<SystemConfig> findById(String id)
	{
		SystemConfig sysconfig = serviceFactory.getProtFactory().getEntityById(id, SystemConfig.class);
		return new ServiceResult<SystemConfig>(sysconfig);
	}
}
